package eteam.aps.systeminterface.model.reqparam;

import eteam.aps.common.models.PatternConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

@Data
@ApiModel(value = "找回密码请求参数")
public class FindPwdParam {

    @ApiModelProperty("用户名")
    @NotEmpty(message = "用户名空")
    @NotBlank(message = "用户名空")
    private String username;

    @ApiModelProperty("用户邮箱")
    @NotEmpty(message = "用户邮箱不能为空")
    @NotBlank(message = "用户邮箱不能为空")
    @Pattern(regexp = PatternConstant.EMAIL, message = "邮箱格式不正确")
    private String email;
}
